#ifndef VoiceEngineObserverImpl_H
#define VoiceEngineObserverImpl_H

#include "voe_base.h"
#include "audio_device_defines.h"
#include "jni_api.h"

class VoiceEngineObserverImpl : public webrtc::VoiceEngineObserver, public JniCallbackGlobal
{
public:
	VoiceEngineObserverImpl(void);
	~VoiceEngineObserverImpl(void);

protected:	//JniCallbackBase
	virtual bool init_jni(JNIEnv* env);

public:
	virtual void CallbackOnError(const int channel, const int errCode);

protected:
	jmethodID m_mid_CallbackOnError;
};

#endif //!VoiceEngineObserverImpl_H


